<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core" template="baseLayout.xhtml">

	<ui:define name="topContent">

		<h:form>
			<h:panelGrid columns="3">
				<h:panelGroup styleClass="ui-widget-header header-element header-pageTitle">
					<ui:insert name="title" />
				</h:panelGroup>
				<h:panelGroup style="position:absolute;">
					<p:ajaxStatus id="spinning">
						<f:facet name="start">
							<p:graphicImage name="formProcessing.gif" library="images" width="32" height="32" />
						</f:facet>

						<f:facet name="complete">
							<h:outputText value="" />
						</f:facet>
					</p:ajaxStatus>
				</h:panelGroup>
				<h:panelGroup styleClass="ui-widget-header header-element header-userInfo">
					<h:outputText value="#{resourceBundle['home.title']}" />
					<h:outputText value=" #{request.userPrincipal.name}" />

					<h:commandLink action="logout">
						Salir
					</h:commandLink>
					
				</h:panelGroup>
			</h:panelGrid>
		</h:form>
	</ui:define>
	<ui:define name="bottomContent">
		<h:panelGrid columns="2">
			<h:panelGroup styleClass="ui-widget-header footer-element footer-copyright">
				<h:outputText value="#{resourceBundle['copyright']}" />
			</h:panelGroup>

			<h:panelGroup styleClass="ui-widget-header footer-element footer-versionInfo">
				<h:outputText value="#{resourceBundle['version']}" />
			</h:panelGroup>
		</h:panelGrid>
	</ui:define>
	<ui:define name="leftContent">
		<ui:include src="menu.xhtml" />
	</ui:define>
	<ui:define name="rightContent">
		<p:panelGrid id="helpItem" columns="1">

		</p:panelGrid>

	</ui:define>
</ui:composition>